<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
  <script src="/js/vue.js"></script>
  <!-- 引入样式element-->
  <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
  <!-- 引入组件库 -->
  <script src="https://unpkg.com/element-ui/lib/index.js"></script>
  <!--  -->
  <script src="https://cdn.bootcss.com/js-cookie/latest/js.cookie.min.js"></script>
  <style>
    * {
      padding: 0px;
      margin: 0px;
      font-size: 14px;
      box-sizing: border-box;
      /* 可以消除边框对长宽的影响 */
    }
    a{
      text-decoration: none;
    }

    #container {
      position: fixed;
      top: 0;
      right: 0;
      left: 0;
      bottom: 0;
      background: url("/img/bacg.jpg") no-repeat center center;
    }

    a {
      color: rgba(0, 0, 0, 0.5);
    }

    a:hover {
      color: rgba(0, 0, 0, 0.8);
    }

    .forms {
      width: 600px;
      margin: 180px auto;
      border: 1px solid rgba(0, 0, 0, 0.2);
      padding: 20px;
      border-radius: 10px;
      box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
      text-align: center;
      background-color: #fff;
    }

    .forms .logo {
      width: 100%;
      height: 80px;
    }

    .forms .logo img {
      height: 60%;
    }

    .forms .logo span {
      line-height: 60px;
      font-size: 25px;
      float: right;
      margin-right: 40%;
    }

    .message {
      padding: 10px;
    }

    .message p a {
      line-height: 80px;
    }

    .message .h2 {
      line-height: 60px;
      font-size: 33px;

    }

    .success {
      color: rgba(64, 158, 255, 1);
    }

    .error {
      color: rgba(240, 131, 28, 1);
    }
  </style>
</head>

<body>
  <div id="container">
    <div class="forms">
      <div class="logo">
        <img src="/img/logo.png" alt="">
        <span>
          信息提示
        </span>
      </div>
      <div class="message" :class="message.status">
        <p class="h2">{{message.msg}}</p>
        <p>
          <a :href="message.link">{{message.linkText}}</a>
        </p>
      </div>
    </div>
  </div>
  <script>
    var vm = new Vue({
      el: '#container',
      created: function () {
        this.message = Cookies.getJSON('message')
      },
      data: function () {
        return {
          message: {}
        }
      }
    })
  </script>
</body>

</html>